package org.germinus.cardea.MuleServiceBundle.components;

import org.germinus.cardea.MuleServiceBundle.impl.ContextBean;

public class ReceiverComponent {

/*public String getInfo(String info){
		
		String fecha= null;
		
		System.out.println("Informacion solicitada: "+info);
		ContextBean cBean =ContextBean.getContextBean();
		fecha = cBean.getInfo(info);		
		return fecha;
	}*/
	
	public String getStock(StockString stock){
		int numeroStock;
		String typeMedicine=stock.getMedicineType();
		
		ContextBean cBean = ContextBean.getContextBean();
		numeroStock = cBean.getStock(typeMedicine);
		
		return "El stock para el medicamento "+typeMedicine+" es de:"+numeroStock+" unidades";
		
	}
	
}
